package com.internetCafes.spms.web.customer.model.user;

import com.internetCafes.spms.web.customer.model.area.EntAreaManagerPo;
import com.internetCafes.spms.web.customer.model.area.EntSaleAreaListPo;
import lombok.Data;

import java.util.List;

/**
 * 企业用户删除校验返回参数
 *
 * @author HHKJ-SERVER-ZJ 2022/3/14 15:23
 */
@Data
public class EntUserDeleteVerifyRes {

    /**
     * 是否可以删除标签
     */
    private boolean deleteAble;

    /**
     * 人员信息统计列表
     */
    private List<UserDataCount> userDataCountList;

    public EntUserDeleteVerifyRes(boolean deleteAble, List<UserDataCount> userDataCountList) {
        this.deleteAble = deleteAble;
        this.userDataCountList = userDataCountList;
    }

    public EntUserDeleteVerifyRes() {
    }

    /**
     * 用户数据统计
     */
    @Data
    public static class UserDataCount {

        /**
         * 人员id
         */
        private Long id;

        /**
         * 成交企业个数
         */
        private int dealEnterpriseAmount;

        /**
         * 成交人个数
         */
        private int dealCustomerAmount;

        /**
         * 意向客户人数
         */
        private int intentionAmount;

        /**
         * 区域销售列表
         */
        private List<EntSaleAreaListPo> saleAreaList;

        /**
         * 管理区域列表
         */
        private List<EntAreaManagerPo> mangerAreaList;

        public UserDataCount() {
        }

        public UserDataCount(Long id, int dealEnterpriseAmount, int dealCustomerAmount, int intentionAmount, List<EntSaleAreaListPo> saleAreaList, List<EntAreaManagerPo> mangerAreaList) {
            this.id = id;
            this.dealEnterpriseAmount = dealEnterpriseAmount;
            this.dealCustomerAmount = dealCustomerAmount;
            this.intentionAmount = intentionAmount;
            this.saleAreaList = saleAreaList;
            this.mangerAreaList = mangerAreaList;
        }
    }

}
